Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 05-25-2002, 01:42 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, got phpmyadmin reinstalled, now the question is what is the SQL for "first you should add a field to your user-table called journal, same options than signature" ?
Reply With Quote
  #12  
Old 05-25-2002, 01:58 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I assumed that to mean, add 3 fields to the user table called journal, options, signature:

ALTER TABLE `ringquest_com`.`user` ADD `journal` TEXT NOT NULL, ADD `options` TEXT NOT NULL, ADD `signature` TEXT NOT NULL

However there is already an options field...
Reply With Quote
  #13  
Old 05-25-2002, 02:11 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, i meant, ALTER TABLE 'user' ADD 'journal' TEXT NOT NULL

just the same options like the signature field: Mediumtext Not Null...
Reply With Quote
  #14  
Old 05-25-2002, 02:33 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the journal.php.

i have made some greate optimizations, but think of it, it is not perfect. Right now, it doesn't use the headers, and other things from your board. I think you can make it yourself from here, if not, say a word and i'll try to optimize it more....
Attached Files
File Type: php journal.php (3.9 KB, 39 views)
Reply With Quote
  #15  
Old 05-25-2002, 08:14 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the link: http://www.ringquest.com/forums/journal.php?userid=1019

It isn't live yet, but just to show you how it looks and everything. I'm very new to vb and to php so importing the styles, locations, replacement vars, etc is a bit beyond me right now.
Reply With Quote
  #16  
Old 05-25-2002, 09:38 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, i can see

i have uploaded a ne journal.php so please download again.

then make a new template called "journal" and put in it:
Code:
{htmldoctype}
<html>
<head>
	<!-- no cache headers -->
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="no-cache">
	<meta http-equiv="Expires" content="-1">
	<meta http-equiv="Cache-Control" content="no-cache">
	<!-- end no cache headers -->
	<meta name="keywords" content="vbulletin,forum,bbs,discussion,jelsoft">
	<meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to http://www.vbulletin.com/ .">
	<title>$bbtitle - powered by vBulletin</title>
	$headinclude
</head>
<body>
$header
<br>
$navbar


<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
	<td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
	<a name="post$post[postid]"></a>
	$post[firstnewinsert]
	<normalfont><b>$post[username]</b></normalfont><br>
	<smallfont>$post[usertitle]</smallfont><br>
	$post[avatar]<p>
	<smallfont>Registered: $post[joindate]<br>
	Location: $post[field2]<br>
	Posts: $post[posts]</smallfont></td>
	
	<td bgcolor="$post[backcolor]" width="100%" valign="top">
	<smallfont>$post[icon] <b>$post[title]</b></smallfont>
	<p><normalfont>$post[message]</normalfont></p>
	$post[attachment]
	<p>$post[signature]</p>
	<p>$post[editedby]</p>
	<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
	</td>
</tr>
<tr>
	<td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$post[foldericon]
	$post[postdate] <font color="{timecolor}">$post[posttime]</font></smallfont></td>
	
	<td bgcolor="$post[backcolor]" width="100%" valign="middle" height="16">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr valign="bottom">
			<td><smallfont>$onlinestatus
			$post[profile] $post[pmlink] $post[useremail] $post[homepage] $post[search] $post[buddy]
			<!-- $ post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] --> 
			</smallfont></td>
			<td align="right" nowrap><smallfont>
			<a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a>
			<a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Reply w/Quote"></a>
			</smallfont></td>
		</tr>
		</table>
	</td>
</tr>
</table>
</td></tr></table>

<!-- spacer --></td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>


$footer
</body>
enjoy
Reply With Quote
  #17  
Old 05-25-2002, 10:09 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, that fixed that issue! The only other one was the fact that apparently Journal entries from Edit Profile aren't being saved.

When I hit submit and go back the field is still blank, and it is equally blank in the journal.php (which functions gorgeously, thanx!)
Reply With Quote
  #18  
Old 05-26-2002, 12:46 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, i see, but i can't find an error in my codes.

do you have integratet everything right?

if yes, perhaps there is s.o. else, who could help, cause i don't see the fault...
Reply With Quote
  #19  
Old 05-29-2002, 07:45 AM
rascal rascal is offline
 
Join Date: Feb 2002
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is quite interesting. If I follow this thread correctly, does this mean the journal is some sort of a blog? Would other members be able to view it?
Reply With Quote
  #20  
Old 05-29-2002, 11:32 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, every member could see the journal from other members.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05849 seconds
  • Memory Usage 2,285KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete