2008-03-29, 03:28 PM
Alright, I have a couple of questions:
a) When viewing a thread or viewing a singular post, and you want to make a reply or something but you need to login in order to make the reply, how do I set something up that when you login, it automatically takes you back to what you were just viewing instead of taking you back to the index page? And what would I need to edit?
b) At the moment, for each post made, on the index.php page in forum bit template "Lastpost" it automatically shows an image of a file (like a peice of paper) instead of an icon you choose for the post (post icons). What code do I need to put in place so that when someone makes a post and chooses a post icon, it shows up on the index page?
Example: Here is what I have in forumbit_depth2_forum_lastpost:
As you can see "post.gif" is in place instead of what the individual user chooses to use. What code do I put in place so that when they choose an icon, it shows up instead of the default "post.gif" icon?
I hope I've explained this clearly, I just got back from weapons training so I'm extremely buggered and tired.
a) When viewing a thread or viewing a singular post, and you want to make a reply or something but you need to login in order to make the reply, how do I set something up that when you login, it automatically takes you back to what you were just viewing instead of taking you back to the index page? And what would I need to edit?
b) At the moment, for each post made, on the index.php page in forum bit template "Lastpost" it automatically shows an image of a file (like a peice of paper) instead of an icon you choose for the post (post icons). What code do I need to put in place so that when someone makes a post and chooses a post icon, it shows up on the index page?
Example: Here is what I have in forumbit_depth2_forum_lastpost:
<div align="left"><img src="{$theme['imgdir']}/post.gif" alt="" style="vertical-align:left"/> <a href="showthread.php?tid={$lastposttid}&action=lastpost" title="{$full_lastpost_subject}"><strong>{$lastpost_subject}</strong></a>
<br />
{$lang->by} {$lastpost_profilelink}</span></div>
<div align="right"><span class="smalltext">{$lastpost_date} <span style="color:#cdf16c;">{$lastpost_time}</span></span> <a href="showthread.php?tid={$lastposttid}&action=lastpost" title="{$full_lastpost_subject}"><img src="{$theme['imgdir']}/lastpost.gif" alt="" style="vertical-align:middle"/></a></div>
As you can see "post.gif" is in place instead of what the individual user chooses to use. What code do I put in place so that when they choose an icon, it shows up instead of the default "post.gif" icon?
I hope I've explained this clearly, I just got back from weapons training so I'm extremely buggered and tired.