Thread Rating:
  • 5 Vote(s) - 4.6 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Ver1.4] Latest Attachment Gallery - for MyBB 1.4 [UPDATED]
#31
Thanks! I'll snoop around my templates and see what kind of trouble I can get into! LOL

Jude




Reply
#32
I suspect you already knew that... But just in case...... Lol!!
Reply
#33
Ozidave Wrote:I tried creating a portal_atchgallery template from the global one, changing the colspan maunually to two, and giving it another "eval" in the portal.php file.

It pulls in the template... but no data ??

Beyond this little black duck's experience I'm afraid. Wink

For Jude:

The anchor can be moved from the header template and placed or not placed in any of the other index pages, either at the top or the bottom. Wink
Do you have an screenshot so I can look about that?
That gives me another good feature to add in too.

[Edit]Well nevermind, your portal is probably customized. Take a look at the default one, http://zurias.com/mybbdev/portal.php .
[Image: rss.png]
Reply
#34
Hi again Jeff,

It's not so much modified... as everything are in their own template modules.. and could easily be made into plugins..

Here's where I do my 'playing' and as you will see, the gallery fits in nicely. Smile

Edit:

Link Removed as it's no longer relevant to the template in question.. And is in a later post to the default MyBB.
Reply
#35
Interestingly enough, I can see the box and the images right now. It looks perfect.
[Image: rss.png]
Reply
#36
Off Topic:

Thanks,

You've given me some incentive to theme the 'little' mods I added, into the default MyBB. And see what happens in a purely default application. Smile
Reply
#37
Ozidave Wrote:I tried creating a portal_atchgallery template from the global one, changing the colspan maunually to two, and giving it another "eval" in the portal.php file.

It pulls in the template... but no data ??
So, this issue is fixed? Wink
[Image: rss.png]
Reply
#38
No Jeff, I stopped 'playing' with it and removed it..

But I will put it back and play some more. Wink

I couldn't see why it shouldn't have worked, but I'm also not that experienced.

May have been a typo, or the portal "eval" needs to be relocated..

Will play some more and get back to you.. Smile
Reply
#39
I dropped the anchor from the portal template and hard-coded the atchgallery template in place of it..

It sees the template, but it just doesn't see the data that way. Wink

Top-Left hand side ->


Edit:

Link removed. No longer relevant.

I was thinking of maybe an additional "global" portal_atchgallery template with a manual colspan="2" change, and another eval string (portal_atchgallery) in atchgallery.php and place the anchor in "portal template" might do the trick ?? bit messy though. Wink

Don't know enough about it I'm afraid.. But I will keep playing with it just for the fun of it. Toungue
Reply
#40
Problem solved, Smile

Or patched anyway... Toungue

I edited atchgallery.php and renamed the functions to include the prefix portal_ and also renamed the titles to include Portal.

Renamed atchgallery.php to portal_atchgallery.php and installed it as another plugin.

It works fine.... Wink so now I have two different gallery options.

I've left the mess in place for you to evaluate so that you can see it actually works... but some anchors really do need to be removed.

http://waloc.com/TEST-MYBB/portal.php

Ideas!

1. Combine both .php files into one without duplicating unnecessary functions.

2. change this line in the portal_ additions section to reflect where you would like to place it in the default portal template.
find_replace_templatesets("header", '#<navigation>#', "<navigation>\n\t\t\t{\$portal_atchgallery}");

3. Add this template into the portal_ syntax block as it is different from the other global template, and in keeping with the space requirements etc...  Wink

<table border="0" cellspacing="1" cellpadding="4" class="tborder">
	<thead>
		<tr>
			<td class="thead" colspan="{$maxperrow}">
				<div class="expcolimage" style="float: right;"><img src="images/collapse.gif" id="c_portal_atchgallery_img" class="expander" alt="[-]" /></div>
				<div><strong>{$name}</strong></div>
			</td>
		</tr>
	</thead>
	<tbody id="c_portal_atchgallery_e">
		<tr style="height: {$height}px;">
			{$thumbnails}
		</tr>
	</tbody>
</table>
<br />

4. Change the default explanations in the portal_ code to include Portal changes etc.

Ramblings:

The only thing I've found that is ??? is when trying to collapse the portal insert, it only collapses the one in the header.

A very small problem while there are two lots of the same template running at the same time and will no doubt disappear when one is removed.. Wink

No more ideas.... It's over to you. Lol!

PS: I'll leave the "Mess" in place until you acknowledge this post... then I'll play some more.. Toungue

PPS: Honest criticism: Installing the gallery into the header is not a good thing.. as it follows one everywhere.
Why not install it to the forum index, and let those who wish it elsewhere, to duplicate the anchors.

And lastly..................... A GREAT MOD! Smile
Reply


Forum Jump:


Users browsing this thread: 29 Guest(s)