The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]() Quote:
Unfortunately no. I get the error listed above with either (what I understand as) relative or absolute path... Code:
chdir('/home/dvcreato/public_html/discuss/'); require_once('./global.php'); chdir('..'); Code:
chdir('./discuss/'); require_once('./global.php'); chdir('..'); Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/dvcreato/public_html/news2.php on line 6 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/dvcreato/public_html/news2.php on line 6 Maybe I'll try putting the script in the same directory as global.php again and experiment with that for a while... I am working with PHP 4.3.9, I would like to think it's something wrong with our PHP compile, but vBulletin and everything else works perfectly so it is obviously my brain deficiency ![]() http://www.dvcreators.net/phpinfo.php |
#12
|
|||
|
|||
![]()
I found the answer, it was ridiculously simple
![]() instead of using includes, or vbdate(), all I had to do was say: Code:
echo date ("d M Y h:i a" ,$row_news['dateline']) Now all I need to do is figure out how to replace a string in PHP so that everywhere in the text of the post where there is a " [ u r l ] " or " [ / u r l ] " it will have the proper actual HTML "<a href> </a> etc." so the text is a clickable link. I need to change strings like this: Code:
Perfect for use with a BeachTek adapter to add high quality XLR mics. Code:
Perfect for use with a <a href="http://www.dvcreators.net/products/beachtek.html" target="_blank">BeachTek adapter<a> to add high quality XLR mics. Code:
$newbody = str_replace(array("", ""), array("<a href=\"", "\"target=\"_blank\">", "<a>"),$row_news['pagetext']); echo $newbody http://dvcreators.net/news2.php I am getting close!!! Anyone want to help revise my replace script? And why is this board parsing my CODE snippets??!? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|