View Full Version : Tags in postbit legacy
Cerbero1000
10-19-2009, 11:48 AM
Hi guys,
can you help me? I need to have the tags list in postbit legacy template. I tried to copy the code in showthread template but tag list don't appear on postbit.
What I need to do?
Thanks
--------------- Added 1255959980 at 1255959980 ---------------
Well, if I put "$tag_list" in postbit legacy template I can't see nothing? It's the wrong variable?
Thanks
Lynne
10-19-2009, 04:09 PM
If you look at the showthread.php template, you'll see that the posts are evaled before the tags are ever evaled, so the tags list is not available when the posts are created. You would have to move the code in that page if you want to use it earlier.
Cerbero1000
10-19-2009, 04:55 PM
Can you help me to do this? :confused:
Lynne
10-19-2009, 05:00 PM
Did you try looking at the showthread.php page at all? There is a very clearly marked area around line 1712 that starts with "// prepare tags" And above that, around line 867 is the area that starts to prepare the actual thread (the post). Copy your showthread.php page and call it showthread2.php and try moving the code around and see if it works then.
Cerbero1000
10-19-2009, 05:12 PM
Nothing... I saw the code in the showthread file... move or delete it is the same...
and sorry for my bad language... I'm Italian...
Lynne
10-19-2009, 05:50 PM
Why would you delete it? I thought you just wanted to move it to before the posts get evaled?
Cerbero1000
10-19-2009, 05:58 PM
Already done... Nothing has changed.
Lynne
10-19-2009, 06:02 PM
Well, since you really haven't posted what you have done (what are you putting in the template? And where? where did you move that code - to what line?), I don't know what to suggest for you to do.
Cerbero1000
10-19-2009, 06:15 PM
Well, look at here... http://www.ilcancello.com/film-thriller-gialli/11276-terrore-cieco.html
I added the "$tag_list" variable in the postbit legacy (near title) but the only part in which the tag list works is its own place, at the bottom, under the thread.
I tried to move the variable to several places of the template and also the showthread.php code where you told me. Nothing changed even when I also deleted it.
It's a movie database website, and I would like to use tags function to have actors name (tags) linkable to their filmography (related threads ordered by tags). Actors section is in the postbit legacy, near the thread attachment (very hard modified vb).
Lynne
10-19-2009, 06:31 PM
I don't know what to tell you except to play with it. I've never done it, so I would just start by doing what I suggested and then play with it. I'd see what is available by just spitting stuff out in the postbits and go from there.
Cerbero1000
10-19-2009, 07:02 PM
If the mod is hard I would pay to have it. I really need to have it... and any help is very appreciated.
Thanks Lynne.
Lynne
10-19-2009, 07:30 PM
You may post in Requests For Paid Services (https://vborg.vbsupport.ru/forumdisplay.php?f=30) if you want to pay someone to make it for you. Read the notices at the top of the forum before posting though.
Cerbero1000
10-19-2009, 07:33 PM
Already opened... I'm in contact with a lot of coder but nobody is able to help me. :mad::(
Lynne
10-19-2009, 07:37 PM
You realize that if you put it in the postbit, then the whole $tag_list is gonna show up in every single post in the thread, right? Is that really what you want? There is a mod (I am pretty sure) that will put an ad (or banner, or whatever) right after the first post. Perhaps modify that mod to just put the Tag List right after the first post. It seems to me that that would be preferable to having the tag list in every single post.
Cerbero1000
10-19-2009, 07:42 PM
Here the fix for not to parse in every post... this is not my problem.
<if condition="$post[postcount] == '1' ">...</if>
I need to have tags in postbit and I am not the only one... Look at the video of a user that wrote the same requeston on Vb.com http://www.youtube.com/watch?gl=CA&hl=en&v=5VrxF_I0LKI
DeanLag
10-19-2009, 07:46 PM
Then all your posts will contain tags of the thread if people who have only 1 post posts in that thread only. Moreover, it wont show for every posts.
If you want it to show on the first post only, you have to modify the code.
Cerbero1000
10-19-2009, 08:01 PM
I'm the only (writer usergroup) with tags permissions and tags are allowed in database forums only.
Here 3 attachments
1. Tags in postbit
2. No more tags in showthread
3. Tags only in first post.
Lynne
10-19-2009, 08:19 PM
Easy solution that works if you use the regular thread display. Move the tag stuff to around line 1100 (not sure of exact number) - right before the ad template is parsed. Then put the $tag_list in that ad template. It will show up only after the first post in every thread. You will need to style it. If you want it in another postbit, you'll have to move it into the postbit loop and probably put a condition around it so the code isn't done over and over and over again.
Cerbero1000
10-20-2009, 09:05 AM
Uhm, I'm trying to solve, move all postbit content in showthread template. All works fine except: attachment thumb (what dam variable i need to use), and to have tags not in alphabetical order...
--------------- Added 1256117202 at 1256117202 ---------------
Well, I move the code in showthread.php and added the variable in ad_showthread_firstpost template. I can see tag list after the first post. Stop.
What I need to do to have in top of postbit?
Thanks
Cerbero1000
10-22-2009, 11:12 AM
Done!!!!
MissKalunji
11-04-2009, 06:30 PM
how did you get it INSIDE the postbit?
rockon
11-05-2009, 08:20 AM
I need some help with this if you have any idea...
I posted a thread of this problem here:
https://vborg.vbsupport.ru/showthread.php?p=1910475
Here's a link to the page i'm struggling on... as you can see the whole tags table is in where I want them to be at the moment - everything but the actual tags!
http://www.rockonpublishing.co.uk/showthread.php?t=13
Hope to hear from you!
Thanks,
--------------- Added 1257418343 at 1257418343 ---------------
I have it in the ad after first post - how the hell do you get it in the postbit legacy!?
Cerbero1000
11-08-2009, 11:52 AM
You can found mine here (actors name in left column are tags): http://www.ilcancello.com/film-commedia-sentimentali/11162-luomo-che-fissa-le-capre.html
MissKalunji
11-09-2009, 02:29 PM
You can found mine here (actors name in left column are tags): http://www.ilcancello.com/film-commedia-sentimentali/11162-luomo-che-fissa-le-capre.html
how did you do it?
--------------- Added 1257784502 at 1257784502 ---------------
could it be that he moved the bottom part tot he side?
@Cerbero1000
Could you share the solution with us please ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.