![]() |
Well, I'm not sure I've totally understand, but, you know, I gotta try.
Edit: I must add if($post['isfirstshown']) to the cached template so It does not affect the functionality of the template, am I right? if so, It's gonna be a little bit difficult :). what about changing the hook? so far, it's the only one that did the purpose. |
Right. If I knew exactly how to tell you to do it I would, but I think it would take me a while to work it out. If you've seen the thread started by Scanu (https://vborg.vbsupport.ru/showthread.php?t=275691), he's having the same problem getting all the different levels of quotes to work out.
|
Well, I've already experienced the problem of the quotes, I'll do my best getting it works, thanks again Mr kh99.
--------------- Added [DATE]1324417995[/DATE] at [TIME]1324417995[/TIME] --------------- Wow, unbelievable, it worked :). I've never imagined I can experience something complicated like that, anyway, take a look at the code (however it is :) ) because I have a little issue: PHP Code:
I'm glad that the big problem is solved. |
I think you probably need the $fetch['data'] to be evaluated when you create the string, like maybe:
Edit: oops, that string probably needs quotes around it, so maybe Code:
$replace = '<span class="date">\';if($post[\'isfirstshown\']) { $final_rendered .=\'' . $fetch['data'] . '\'; } $final_rendered .=\''; ETA: I see you figured that out... |
Congratulations, it works perfectly, just added '/ surrounding the $fetch['data'] and here we go, the last code is:
PHP Code:
Regards. |
All times are GMT. The time now is 05:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|