The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2006, 10:05 AM
gbrain gbrain is offline
Junior Member
 
Join Date: Jan 2006
Posts: 2
Geek Article and Review System License Holder 
Default CMPS news, image and byline

Hi all, I have just purchased GARS (nice tool) and still new to all this.

Q. I am using CMPS on my site and have the news module pointing to the Article forum and I want to add the image and byline.

The modules uses

PHP Code:
<h1>$news[title]</h1>
<
h2><span class="meta"><span class="date">[$news[dateposted]]</span></span>$news[byline]</h2>
<
div class="pane">$news[message]</div
Is there a list of variable names that point to the parts of the article, like the image, byline ?

I am using the basic news.php in the module directory.

thanks

G.

btw the link example is

http://dndgamer.gbrain.co.uk
Reply With Quote
  #2  
Old 01-30-2006, 10:24 AM
Lizard King's Avatar
Lizard King Lizard King is offline
Senior Member
 
Join Date: Oct 2005
Location: Istanbul
Posts: 555
Geek Article and Review System License Holder Geek Gazette License Holder 
Default

You may want to check this two thread http://www.thevbgeek.com/showthread.php?t=386
http://www.thevbgeek.com/showthread.php?t=421

Right now getting synopsis and byline in cmps is not possible i think since there is not a module for this but i start working on it maybe i can get it working.
Reply With Quote
  #3  
Old 01-30-2006, 10:48 AM
gbrain gbrain is offline
Junior Member
 
Join Date: Jan 2006
Posts: 2
Geek Article and Review System License Holder 
Default

no its done, all i did was add byline to the sql statement and used $geek[1]

But thanks for that...

PHP Code:
 // GARS modification
         
$geek = array();
                
$getgeek $db->query_read("SELECT header_image, byline FROM " TABLE_PREFIX "gars WHERE threadid=" .$news['threadid'] . "");
                
                while (
$geeksql $db->fetch_array($getgeek)) {
                    
$geek[] = $geeksql['header_image'];
                    
$geek[] = $geeksql['byline'];
                }
    
// / GARS modification 
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
News Archive (CMPS) ericguttormson Geek Article and Review System 1 08-06-2007 05:15 PM
which variable is byline magnaromagna Geek Article and Review System 1 12-24-2006 11:37 AM
byline on pb Uno Geek Article and Review System 5 12-01-2006 11:45 AM
byline gamelandz Geek Article and Review System 4 07-01-2006 07:45 PM
bb code in byline kidmercury Geek Article and Review System 0 11-09-2005 08:08 PM


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


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.