The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Simple Plug-in not Working.
This is a continuation from another thread, but the content has already changed sig. from the original thread.
Trying to get the latest 6 thumbails to display under the navbar. "highlightthread" is indeed the name of the table as I forgot to add the prefix. Here is the plugin: PHP Code:
Last line on the navbar, I just plucked in $highlightthreads , but to no avail. Nothing is showing up in the source either when I load forumhome so I'm sure I've gone wrong somewhere. Any ideas? Many thanks |
#2
|
||||
|
||||
Instead of echoing the image tags, save them into a variable, and that's the variable you need to put in a template.
|
#3
|
|||
|
|||
PHP Code:
|
#4
|
||||
|
||||
It's a good habit to initialize your variables $image = ''; before you start concatenating information onto it.
|
#5
|
|||
|
|||
Analogpoint & Opserty,
Thank you very much for your help. I've edited the code to show this now: edited, see below: --------------- Added [DATE]1192514327[/DATE] at [TIME]1192514327[/TIME] --------------- Interesting, when I load the PHP through logicians template it displays the last 6 as the code states. However when I run it through the plugin I only get the last value (i.e. the 6th). Any thoughts on what may be causing this? Note: $highlightimage is situated at the bottom of the navbar. New code: PHP Code:
|
#6
|
|||
|
|||
Change:
PHP Code:
PHP Code:
|
#7
|
|||
|
|||
Thank you Marco, still a lot to learn
Think the only issue I really have left is now "how do I seperate the data?". Currently, it's outputting <a href="url1url2url3url4url5url6"> when I'd like it to create the link for each of the url's. Code now is as follows: PHP Code:
PHP Code:
|
#8
|
|||
|
|||
Change:
PHP Code:
PHP Code:
|
#9
|
|||
|
|||
Thank you Marco, that did the trick. I have been trying to figure out how to populate the thumbnails in 3 rows, 2 per row (total 6), i.e.:
thumb1 thumb2 thumb3 thumb4 thumb5 thumb6 Now obviously I could probably use 3 queries, but I'm thinking this is probably inefficient and there is a better solution. What function or code would I need to insert to make such possible? Many thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|