Welcome, Guest. Please Login or Register.
September 29, 2024, 12:18:54 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Yabbse, CodeCharge Studio, and FrontPage « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Yabbse, CodeCharge Studio, and FrontPage  (Read 3327 times)
Eudaimonia
Noobie
*
Posts: 17


Frustrated Beyong Belief

Yabbse, CodeCharge Studio, and FrontPage
« on: March 17, 2003, 08:15:12 PM »
Reply with quote

Ok, I've downloaded and installed Yabb SE and had it running for almost nine months now without problems.

Here's my question. I want to integrate the message board into my website. I use FrontPage to build and manage my website.

I found CodeChage Studio, http://www.codecharge.com/index2.html, online and in theory, it's suppose to create database driven websites. The problem is that I do not know php or mysql fluently enough to hard code it or understand the complexity of the program.

However, the problem is that if it is easy, I'm just not getting it. So I return back to Yabbse for assistance.

The basic question is this, is there an easy way to integrate the exsisting Yabbse message board into a website?

A followup question would be is there a way to add entries to the profile and based on the group that I list the member in (moderator, promoter) can I limit their access in the website?

**I hope this is the right place for this post**

Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #1 on: March 17, 2003, 08:59:05 PM »
Reply with quote

is there an easy way to integrate the exsisting Yabbse message board into a website?

check ssi_examples.php and NewsPHP_ReadMe.txt
http://www.yabbse.org/community/ssi_examples.php
http://www.yabbse.org/community/NewsPHP_ReadMe.txt
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Eudaimonia
Noobie
*
Posts: 17


Frustrated Beyong Belief

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #2 on: March 17, 2003, 11:45:04 PM »
Reply with quote

Ok, thanks Spaceman!!!!!!

That was a huge help, however, I do have one more question.

I've used the examples provided in the ssi_examples link. I also changed the info to reflect the location of my ssi.php.

The problem now is the information is not updating. For example, it shows the last member registered, but when other users sign up, it's not being updated on the page.

This is the code used on the page that needs updating.

<p align="center"> <br>
Please welcome
 <a href="http://www.damionswhite.com/yabbse/index.php?action=viewprofile;user=HeavenL">HeavenL
 </a>, our newest message board member.<br />

How do I change this code to where it updates automatically??
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #3 on: March 17, 2003, 11:51:31 PM »
Reply with quote

it should be updated automatically
check your last user's profile if the registration date is somewhere in the future, if it is, just fix/change it
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Eudaimonia
Noobie
*
Posts: 17


Frustrated Beyong Belief

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #4 on: March 17, 2003, 11:56:24 PM »
Reply with quote

Spaceman, thanks again for your help, however that doesn't work.

I have Yabbse on a website, hosted by IPowerWeb.

I have the website that I added the code on, hosted by Irides.

I don't think that two different web hosts would cause a problem, however it might. I'm going to call Irides while I wait on a response.

The code that I listed above does take the person to the message board profile, however, other members have joined since then.

I either don't see or am not reading the code right that tells it to update.
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #5 on: March 18, 2003, 12:05:41 AM »
Reply with quote

can we have a link to that page where u use SSI.php?
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Eudaimonia
Noobie
*
Posts: 17


Frustrated Beyong Belief

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #6 on: March 18, 2003, 12:09:41 AM »
Reply with quote

According to the link, http://www.yabbse.org/community/ssi_examples.php

It says to put

At the very top of your page on line 1 before the <html> tag put:
<?php require("/home/groups/y/ya/yabbse/htdocs/community/SSI.php"); ?>

My SSI.php is located at www.damionswhite.com/yabbse/SSI.php

I put this code at the top of the page:

www.damionswhite.com/yabbse/SSI.php as the instructions said to.

I hope that helps....

Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #7 on: March 18, 2003, 12:58:11 AM »
Reply with quote

that is the path for this forum (yabbse.org), each site will have different paths

i recommend u to upgrade to 1.5.1 for it is more secure and contains a lot of bug fixes
u can also get an ssi_examples.php if u download the 1.5.1 package
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Eudaimonia
Noobie
*
Posts: 17


Frustrated Beyong Belief

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #8 on: March 18, 2003, 07:57:04 PM »
Reply with quote

Ok, once again, my lack of knowledge is killing me.

I've upgraded without problems, but there is a difference in coding in the ssi_examples.

The one that Spaceman offered, http://www.yabbse.org/community/ssi_examples.php has one type of coding, while the ssi_examples included in the upgrade have a different coding altogther.

Please remember that I have the Yabbse on one servor and the main website on another.

I want to have users online and newest member to be automatically updated on the main website.

Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

How to use SSI.php
« Reply #9 on: March 18, 2003, 08:25:37 PM »
Reply with quote

i forgot to say to upgrade to 1.5.1, because it's much better than 1.5.0 :)

anyway, for doing SSI, u need to do these 3 steps:

1. edit SSI.php file and change $full_yabbse_path somewhere on top of the codes (after the credits), change the value to your boarddir. u can get this value by looking at Admin Center -> Forum Prefernces and Settings -> YaBB Directory, example if yours is: /home/sitename/htdocs/forum
in SSI.php change: $full_yabbse_path = '.'; into: $full_yabbse_path = '/home/sitename/htdocs/forum';

2. Put the require statement on top of the file that u wish to show the SSI. Example, if u want to show it in the front page of your site, put this line on top of any code (including <html> tag):
require <?php "/home/sitename/htdocs/forum/SSI.php"?>

3. u can call any functions u want to display in that page, example: <?php recentTopics(); ?>

More info
• How to modify recentTopics look? Try the new recentTopics mod
• How to make recentTopics show only different topics? You can either install the new recentTopics mod or make this code change in SSI.php recentTopics():
search for      WHERE t.ID_TOPIC=m.ID_TOPIC replace with:      WHERE m.ID_MSG = t.ID_LAST_MSG

wow, this is my best SSI.php tutorial so far, i'll bookmark this...
« Last Edit: March 19, 2003, 11:41:47 PM by Spaceman-Spiff » Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
raffael3d
Jr. Member
**
Posts: 79


I'm a llama!

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #10 on: March 19, 2003, 11:07:53 AM »
Reply with quote

thanks, works great.

now I only need somethig else: I want to limit the text. which means if a topic si too long it is diaplyed as "this is a long to...."


I tried that.

$recent_board = '<a href="' . $cgi . $row[ID_BOARD] . '">' . $row[bName] . '</a>';
            $recent_icon = '<img src="' . $imagesdir . '/' . $row[icon] . '.gif" alt="' . $row[icon] . '" border="0" />';
            $recent_topic = '<a href="' . $cgi . $row[ID_BOARD] . ';action=display;threadid=' . $row[ID_TOPIC] . ';start=' . $row[numReplies] . '">' . $row[subject] . '</a>';
            $recent_poster = $dummy;
            $recent_new = $new;
            $recent_time = timeformat($row['posterTime']);
   

// Here the transform script starts...however it is not working         
            $news_body = DoUBBC($recent_topic);



$maxLength = 3;
if (strlen($news_body) > $maxLength)
$news_body = substr($news_body,0, $maxLength).'... <a href="$cgi;action=display;threadid=$row[ID_TOPIC];start=0">' . $news_body . '</a>';


the sctipt doesn't work tough, any tips?
Logged
raffael3d
Jr. Member
**
Posts: 79


I'm a llama!

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #11 on: March 19, 2003, 04:23:28 PM »
Reply with quote

what do I have to change in recent.php (I let it display on the board index) so that I don't see the last posts but only the last topics (same sitaution as mentioned in posts above, but can't find the right code)

and how can I make that it takes you directly to the post (it scrolls down for you) and not just to the thread?

thanks.
« Last Edit: March 19, 2003, 04:44:00 PM by raffael3d » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

How to shorten news body
« Reply #12 on: March 19, 2003, 08:11:53 PM »
Reply with quote

Quote from: raffael3d on March 19, 2003, 11:07:53 AM
thanks, works great.

now I only need somethig else: I want to limit the text. which means if a topic si too long it is diaplyed as "this is a long to...."


search for:$news_body = DoUBBC($row['body']);add after:$maxLength = 100;
if (strlen($news_body) > $maxLength)
  $news_body = substr($news_body,0, $maxLength)."... [<a href=\"$cgi;action=display;threadid=$row[ID_TOPIC];start=0\">message truncated</a>]";


u can put the $maxlength on top, easier to change the length afterwards
this code, however, might cut off urls/images because it doesnt check till end of a word/sentence/paragraph
it cuts after the 1st 100 characters.
« Last Edit: March 19, 2003, 11:43:44 PM by Spaceman-Spiff » Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Floyds
Noobie
*
Posts: 48


I'm a llama!

Re:Yabbse, CodeCharge Studio, and FrontPage
« Reply #13 on: February 25, 2004, 09:43:43 PM »
Reply with quote

great this code helped me out... very nice...Thx
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Yabbse, CodeCharge Studio, and FrontPage « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.047 seconds with 21 queries.